@echo off
call npm run build
echo npm done

xcopy /I /Y "%~dp0..\src\img" "%~dp0..\dist\img"
xcopy /I /Y "%~dp0..\src\json" "%~dp0..\dist\json"


python %~dp0cvt_utf8_sig.py
bz c -storeroot:no "%~dp0..\dist.zip" "%~dp0..\dist"
rename "%~dp0..\dist.zip" "dist_%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%%time:~6,2%.zip"
pause
